Integrand size = 21, antiderivative size = 67 \[ \int (c e+d e x)^2 (a+b \arctan (c+d x)) \, dx=-\frac {b e^2 (c+d x)^2}{6 d}+\frac {e^2 (c+d x)^3 (a+b \arctan (c+d x))}{3 d}+\frac {b e^2 \log \left (1+(c+d x)^2\right )}{6 d} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {5151, 12, 4946, 272, 45} \[ \int (c e+d e x)^2 (a+b \arctan (c+d x)) \, dx=\frac {e^2 (c+d x)^3 (a+b \arctan (c+d x))}{3 d}-\frac {b e^2 (c+d x)^2}{6 d}+\frac {b e^2 \log \left ((c+d x)^2+1\right )}{6 d} \]
[In]
[Out]
Rule 12
Rule 45
Rule 272
Rule 4946
Rule 5151
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int e^2 x^2 (a+b \arctan (x)) \, dx,x,c+d x\right )}{d} \\ & = \frac {e^2 \text {Subst}\left (\int x^2 (a+b \arctan (x)) \, dx,x,c+d x\right )}{d} \\ & = \frac {e^2 (c+d x)^3 (a+b \arctan (c+d x))}{3 d}-\frac {\left (b e^2\right ) \text {Subst}\left (\int \frac {x^3}{1+x^2} \, dx,x,c+d x\right )}{3 d} \\ & = \frac {e^2 (c+d x)^3 (a+b \arctan (c+d x))}{3 d}-\frac {\left (b e^2\right ) \text {Subst}\left (\int \frac {x}{1+x} \, dx,x,(c+d x)^2\right )}{6 d} \\ & = \frac {e^2 (c+d x)^3 (a+b \arctan (c+d x))}{3 d}-\frac {\left (b e^2\right ) \text {Subst}\left (\int \left (1+\frac {1}{-1-x}\right ) \, dx,x,(c+d x)^2\right )}{6 d} \\ & = -\frac {b e^2 (c+d x)^2}{6 d}+\frac {e^2 (c+d x)^3 (a+b \arctan (c+d x))}{3 d}+\frac {b e^2 \log \left (1+(c+d x)^2\right )}{6 d} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 54, normalized size of antiderivative = 0.81 \[ \int (c e+d e x)^2 (a+b \arctan (c+d x)) \, dx=\frac {e^2 \left (\frac {1}{3} (c+d x)^3 (a+b \arctan (c+d x))-\frac {1}{6} b \left ((c+d x)^2-\log \left (1+(c+d x)^2\right )\right )\right )}{d} \]
[In]
[Out]
Time = 0.23 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.91
method | result | size |
derivativedivides | \(\frac {\frac {e^{2} a \left (d x +c \right )^{3}}{3}+e^{2} b \left (\frac {\left (d x +c \right )^{3} \arctan \left (d x +c \right )}{3}-\frac {\left (d x +c \right )^{2}}{6}+\frac {\ln \left (1+\left (d x +c \right )^{2}\right )}{6}\right )}{d}\) | \(61\) |
default | \(\frac {\frac {e^{2} a \left (d x +c \right )^{3}}{3}+e^{2} b \left (\frac {\left (d x +c \right )^{3} \arctan \left (d x +c \right )}{3}-\frac {\left (d x +c \right )^{2}}{6}+\frac {\ln \left (1+\left (d x +c \right )^{2}\right )}{6}\right )}{d}\) | \(61\) |
parts | \(\frac {e^{2} a \left (d x +c \right )^{3}}{3 d}+\frac {e^{2} b \left (\frac {\left (d x +c \right )^{3} \arctan \left (d x +c \right )}{3}-\frac {\left (d x +c \right )^{2}}{6}+\frac {\ln \left (1+\left (d x +c \right )^{2}\right )}{6}\right )}{d}\) | \(63\) |
parallelrisch | \(\frac {2 d^{4} e^{2} b \arctan \left (d x +c \right ) x^{3}+2 x^{3} a \,d^{4} e^{2}+6 d^{3} e^{2} c b \arctan \left (d x +c \right ) x^{2}+6 x^{2} a c \,d^{3} e^{2}+6 b \,c^{2} e^{2} \arctan \left (d x +c \right ) x \,d^{2}-x^{2} b \,d^{3} e^{2}+6 x a \,c^{2} d^{2} e^{2}+2 c^{3} b \,e^{2} \arctan \left (d x +c \right ) d -2 x b c \,d^{2} e^{2}-18 a \,c^{3} d \,e^{2}+5 b \,c^{2} d \,e^{2}+e^{2} b \ln \left (d^{2} x^{2}+2 c d x +c^{2}+1\right ) d -6 d \,e^{2} c a +b d \,e^{2}}{6 d^{2}}\) | \(198\) |
risch | \(-\frac {i e^{2} \left (d x +c \right )^{3} b \ln \left (1+i \left (d x +c \right )\right )}{6 d}+\frac {i e^{2} d^{2} b \,x^{3} \ln \left (1-i \left (d x +c \right )\right )}{6}+\frac {i e^{2} d b c \,x^{2} \ln \left (1-i \left (d x +c \right )\right )}{2}+\frac {i e^{2} b \,c^{2} x \ln \left (1-i \left (d x +c \right )\right )}{2}+\frac {e^{2} d^{2} a \,x^{3}}{3}+\frac {i e^{2} b \,c^{3} \ln \left (d^{2} x^{2}+2 c d x +c^{2}+1\right )}{12 d}+\frac {e^{2} b \,c^{3} \arctan \left (d x +c \right )}{6 d}+e^{2} d a c \,x^{2}+e^{2} a \,c^{2} x -\frac {e^{2} d b \,x^{2}}{6}-\frac {e^{2} b c x}{3}+\frac {e^{2} b \ln \left (-d^{2} x^{2}-2 c d x -c^{2}-1\right )}{6 d}\) | \(227\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 129 vs. \(2 (61) = 122\).
Time = 0.27 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.93 \[ \int (c e+d e x)^2 (a+b \arctan (c+d x)) \, dx=\frac {2 \, a d^{3} e^{2} x^{3} + {\left (6 \, a c - b\right )} d^{2} e^{2} x^{2} + 2 \, {\left (3 \, a c^{2} - b c\right )} d e^{2} x + b e^{2} \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right ) + 2 \, {\left (b d^{3} e^{2} x^{3} + 3 \, b c d^{2} e^{2} x^{2} + 3 \, b c^{2} d e^{2} x + b c^{3} e^{2}\right )} \arctan \left (d x + c\right )}{6 \, d} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 15.57 (sec) , antiderivative size = 182, normalized size of antiderivative = 2.72 \[ \int (c e+d e x)^2 (a+b \arctan (c+d x)) \, dx=\begin {cases} a c^{2} e^{2} x + a c d e^{2} x^{2} + \frac {a d^{2} e^{2} x^{3}}{3} + \frac {b c^{3} e^{2} \operatorname {atan}{\left (c + d x \right )}}{3 d} + b c^{2} e^{2} x \operatorname {atan}{\left (c + d x \right )} + b c d e^{2} x^{2} \operatorname {atan}{\left (c + d x \right )} - \frac {b c e^{2} x}{3} + \frac {b d^{2} e^{2} x^{3} \operatorname {atan}{\left (c + d x \right )}}{3} - \frac {b d e^{2} x^{2}}{6} + \frac {b e^{2} \log {\left (\frac {c}{d} + x - \frac {i}{d} \right )}}{3 d} - \frac {i b e^{2} \operatorname {atan}{\left (c + d x \right )}}{3 d} & \text {for}\: d \neq 0 \\c^{2} e^{2} x \left (a + b \operatorname {atan}{\left (c \right )}\right ) & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 238 vs. \(2 (61) = 122\).
Time = 0.31 (sec) , antiderivative size = 238, normalized size of antiderivative = 3.55 \[ \int (c e+d e x)^2 (a+b \arctan (c+d x)) \, dx=\frac {1}{3} \, a d^{2} e^{2} x^{3} + a c d e^{2} x^{2} + {\left (x^{2} \arctan \left (d x + c\right ) - d {\left (\frac {x}{d^{2}} + \frac {{\left (c^{2} - 1\right )} \arctan \left (\frac {d^{2} x + c d}{d}\right )}{d^{3}} - \frac {c \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{d^{3}}\right )}\right )} b c d e^{2} + \frac {1}{6} \, {\left (2 \, x^{3} \arctan \left (d x + c\right ) - d {\left (\frac {d x^{2} - 4 \, c x}{d^{3}} - \frac {2 \, {\left (c^{3} - 3 \, c\right )} \arctan \left (\frac {d^{2} x + c d}{d}\right )}{d^{4}} + \frac {{\left (3 \, c^{2} - 1\right )} \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{d^{4}}\right )}\right )} b d^{2} e^{2} + a c^{2} e^{2} x + \frac {{\left (2 \, {\left (d x + c\right )} \arctan \left (d x + c\right ) - \log \left ({\left (d x + c\right )}^{2} + 1\right )\right )} b c^{2} e^{2}}{2 \, d} \]
[In]
[Out]
\[ \int (c e+d e x)^2 (a+b \arctan (c+d x)) \, dx=\int { {\left (d e x + c e\right )}^{2} {\left (b \arctan \left (d x + c\right ) + a\right )} \,d x } \]
[In]
[Out]
Time = 1.29 (sec) , antiderivative size = 144, normalized size of antiderivative = 2.15 \[ \int (c e+d e x)^2 (a+b \arctan (c+d x)) \, dx=\frac {a\,d^2\,e^2\,x^3}{3}-\frac {b\,c\,e^2\,x}{3}+\frac {b\,e^2\,\ln \left (c^2+2\,c\,d\,x+d^2\,x^2+1\right )}{6\,d}+a\,c^2\,e^2\,x-\frac {b\,d\,e^2\,x^2}{6}+b\,c^2\,e^2\,x\,\mathrm {atan}\left (c+d\,x\right )+a\,c\,d\,e^2\,x^2+\frac {b\,c^3\,e^2\,\mathrm {atan}\left (c+d\,x\right )}{3\,d}+\frac {b\,d^2\,e^2\,x^3\,\mathrm {atan}\left (c+d\,x\right )}{3}+b\,c\,d\,e^2\,x^2\,\mathrm {atan}\left (c+d\,x\right ) \]
[In]
[Out]